package org.csu.mypetstore.persistence;


import org.csu.mypetstore.domain.Account;
import org.csu.mypetstore.domain.Wish;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountMapper  {
    Account getAccountByUsername(String username);

    Account getAccountByUsernameAndPassword(Account account);

    void insertAccount(Account account);

    void insertProfile(Account account);

    void insertSignon(Account account);

    void updateAccount(Account account);

    void updateProfile(Account account);

    void updateSignon(Account account);

    List<Account> getallAccount();
    List<Account> getallAccountprofile();
    List<Account> searchAccount(String keyword);
    List<Account> searchAccountprofile(String keyword);
    void deleteAccount(String username);
    void deleteSignon(String username);
    void deleteprofile(String username);
    void insertWish(Wish wish);
    void deleteWish(Wish wish);
    List<Wish> selectWish(String  username);
    String getAccountnamebyphone(String phonenumber);
}
